<html>
<head>
<title>firstworks   Programming with Rudiments using the logger class</title>
<link href="../css/styles.css" rel="stylesheet">
</head>
<body>

<span class="heading">Using the logger class</span><br><br>

<p>The logger class and associated logdestination classes provide a framework for generating log messages from applications.  An application can define a set of logdestinations and attach them to an instance of the logger class.  Then, when the application calls one of the write() methods of the logger class, the log message is written to each of the logdestinations.  For example, an application could simultaneously log to stderr and to a file.  Currently stdout, stderr, file and syslog logdestinations are supported.  If an application needs to send one set of log messages to one destination and another set to a different destinations, it can create two instances of the logger class and use one for each set of messages.</p>

<p>The following example illustrates use of the logger class.</p>

<img src="../images/traffic_cone.png"/>

<p>Coming soon...</p>

<blockquote class="code">

<script type='text/javascript'>
<!--

-->
</script>
<font face="monospace">
<font color="#2e8b57"><b>int</b></font>&nbsp;main(<font color="#2e8b57"><b>int</b></font>&nbsp;argc,&nbsp;<font color="#2e8b57"><b>const</b></font>&nbsp;<font color="#2e8b57"><b>char</b></font>&nbsp;**argv) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#0000ff">//&nbsp;</font><span style="background-color: #ffff00"><font color="#0000ff">FIXME</font></span><font color="#0000ff">: example...</font><br>
}<br>
</font>
<!-- vim: set foldmethod=manual : -->
</blockquote>

</body>
</html>
